﻿namespace Tisonet.Dobrak.Adapters
{
    public interface IIsolatedStorage
    {
        bool HasSettings(string key);

        T GetSettings<T>(string key);

        T GetSettingsOrDefault<T>(string key, T defaultValue);

        void SaveSettings(string key, object value);

        bool HasFile(string filename);

        string ReadFile(string filename);

        void WriteToFile(string filename, string content);
    }
}
